
//对hooks进行封装，以便在整个app当中使用useDispatch,useSelector

import { useDispatch, useSelector,TypedUseSelectorHook } from "react-redux"
import type { AppDispatch, RootState } from "./store"

// Use throughout your app instead of plain `useDispatch` and `useSelector`
export const UseAppDispatch: () => AppDispatch = useDispatch
export const UseAppSelector: TypedUseSelectorHook<RootState> = useSelector